package com.ruoyi.project.zxbd.controller;

import com.ruoyi.common.zx.PageData;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.service.ISysDictTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 客户Controller
 *
 * @author mn
 * @date 2022-12-30
 */
@RestController
@RequestMapping("/api/bd")
public class BdApiController extends BaseController {

    @Autowired
    private ISysDictTypeService dictTypeService;

    /**
     * 查询客户列表
     */

    @GetMapping("/dictSelect")
    public AjaxResult dictSelect() {
        PageData pd = this.getPageData();
        List<PageData> list = dictTypeService.dictSelect(pd);
        return AjaxResult.success("list", list);

    }

}
